<template>
	<view class="container">
		<view class="bg-colore"></view>
		<view class="content">
			<view class="wrap">
				<view class="list-div">
					<view class="list" v-for="item in list" :key="item.recordsId">
						<view class="add">
							<text class="xiao">地址：</text> {{item.plotName}}{{item.room}}
						</view>
						<view class="code-div">
							<view class="code">
								<text class="xiao">卷码：</text> {{item.bak3}}
							</view>
							<view class="ylwz">
								本月已领取
							</view>
						</view>
						<view class="time">
							{{item.hxTime}}
						</view>
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: []
			};
		},
		onLoad() {
			this.getItemRecordsList()
		},
		methods: {
			getItemRecordsList() {
				let that = this
				this.$public.htmlPost("/api/getItemRecordsList").then((res) => {
					console.log("getItemRecordsList", res)
					let data = res.data
					if (data.code == 0) {
						that.list = data.data
					}
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.wrap {
		padding: $uni-wrap-padding;
	}

	.list-div {
		margin-top: 30rpx;

		.list {
			background: #fff;
			color: #333333;
			font-size: 28rpx;
			padding: 30rpx;
			margin-bottom: 30rpx;

			.xiao {
				color: #999999;
			}

			.time {
				color: #666666;
				border-top: 2rpx solid rgba(0, 0, 0, 0.1);
				padding-top: 24rpx;
				margin-top: 24rpx;
				text-align: center;
			}

			.code-div {
				display: flex;
				justify-content: space-between;
				align-items: flex-end;
				margin-top: 24rpx;

				.ylwz {
					width: 200rpx;
					height: 64rpx;
					background: #CCCCCC;
					border-radius: 40rpx 40rpx 40rpx 40rpx;
					color: #fff;
					text-align: center;
					line-height: 64rpx;
				}
			}
		}
	}
</style>